package com.huixin.zhang.common.utils;

import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.text.NumberFormat;

public class AmtUtils {
    private static NumberFormat nf = new DecimalFormat("0.00");

    public static String fen2Yuan(Long fen){
        if(fen == null){
            return "";
        }
        BigDecimal bd = new BigDecimal(fen);
        return nf.format(bd.movePointLeft(2));
    }
}
